﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Extjs_ReGSharpTest.Stubs;
using Extjs_ReGSharp.Sorting;

namespace Extjs_ReGSharpTest.SortingBehaviour
{
	internal class OppositeOrderSortingBehaviourFactory : ISortingBehaviourFactory<DataObjectStub>
	{
		#region ISortingBehaviourFactory<DataObjectStub> Members

		public ISortingBehaviour<DataObjectStub> CreateSortingBehaviour(string fieldName)
		{
			if (fieldName == "IntField")
			{
				return new OppositeOrderSortingBehaviour();
			}

			return null;
		}

		#endregion
	}
}
